home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
forms
/
ctl3dbas
/
ctl3d.bas
Wrap
BASIC Source File
|
1994-07-06
|
1KB
|
22 lines
Declare Function GetModuleHandle Lib "Kernel" (ByVal ModuleName As String) As Integer
Declare Function Ctl3dAutoSubclass Lib "Ctl3D.DLL" (ByVal hInst As Integer) As Integer
Declare Function Ctl3dRegister Lib "Ctl3D.DLL" (ByVal hInst As Integer) As Integer
Declare Function Ctl3dUnregister Lib "Ctl3D.DLL" (ByVal hInst As Integer) As Integer
Sub EndApp3D ()
Rem This Sub is used to end the 3D effects
Rem IMPORTANT: you must end 3D effects before your app ends
Inst% = GetModuleHandle(App.EXEName) ' Get program's ModuleHandle.
' Inst% = GetModuleHandle("VB.EXE") ' Use this line when running in the VB environment
ret = Ctl3dUnregister(Inst%) ' Unregister the program.
End Sub
Sub StartApp3D ()
Rem Use this to start the 3D dialogs
Inst% = GetModuleHandle(App.EXEName) ' Get program's ModuleHandle.
ret = Ctl3dRegister(Inst%) ' Register program w/ Ctl3d.
ret = Ctl3dAutoSubclass(Inst%) ' Subclass the program.
' Inst% = GetModuleHandle("VB.EXE") ' Use this line when running in the VB environment
End Sub